package com.fen.demo014;

import com.fen.common.UserDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @description:
 * @author: lrf
 * @create: 2019-03-23
 **/
public class Main {

	public static void main(String[] args) {

		ApplicationContext context = new AnnotationConfigApplicationContext(HelloWorldConfiguration.class);

		UserDao userDao = context.getBean("userDao", UserDao.class);

		userDao.sayDao();
	}
}
